{% extends 'oratk_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">监控时间管理</h2>
            <form class="navbar-form navbar-left" role="search">
            {#                <button type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"  aria-hidden="true" ></span><a href="/basic_app/user_add"> 添加用户</a></button>#}
            <div class="form-group">
                <input type="text" name="user_search" class="form-control aa_search" placeholder="Search">
            </div>
            <button type="buttom" class="btn btn-default" onlick="aa_search()" id="aa_search" aa_search="{{ search }}">
                <span class="glyphicon glyphicon-search" aria-hidden="true"></span> 搜索
            </button>
            <button type="button" class="btn btn-default"
                    onclick="javascrtpt:window.location.href='/oratk_app/cron_time_mgr_add'"><span
                    class="glyphicon glyphicon-plus" aria-hidden="true"></span> 添加监控时间
            </button>
        </form>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                <th style="display: none">id</th>
                 <th>name</th>
                 <th>type</th>
                <th>Minute(s)</th>
                <th>Hour(s)</th>
                <th>Day(s) Of The Week</th>
                <th>Day(s) Of The Month</th>
                <th>Month(s) Of The Year</th>
                <th>Cron Timezone</th>
                <th>操作</th>
            </thead>
            <tbody>
            {% for i in current_page %}
                <tr>
                    <td style="display: none">{{ i.id }}</td>
                     <th>{{ i.name }}</th>
                     <th>{{ i.type }}</th>
                    <td>{{ i.type_id__minute }}</td>
                    <td>{{ i.type_id__hour }}</td>
                    <td>{{ i.type_id__day_of_week }}</td>
                    <td>{{ i.type_id__day_of_month }}</td>
                    <td>{{ i.type_id__month_of_year }}</td>
                    <td>{{ i.type_id__timezone }}</td>
{#                    <td ><a href="/oratk_app/cron_time_mgr_edit?nid={{ i.type_id__id }}">编辑</a> | <a#}
                    <td ><a
                            href="/oratk_app/cron_time_mgr_delete?nid={{ i.type_id__id }}">删除</a>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        {#        以上是分页#}
        {% include 'basic_app/paginator.html' %}
    </div>
{% endblock  %}
{#{% block script %}#}
{#    <script>#}
{#        function aa_search(){#}
{#            var search = $('.aa_search').val();#}
{#            var   url="/oratk_app/cron_time_mgr?user_search='"+search+"'";#}
{#            window.location.href=url#}
{#        }#}
{#</script>#}
{#{% endblock %}#}